package cn.xopencode.securityservice.enums.activity;

import cn.xopencode.common.framework.core.IntArrayValuable;

import java.util.Arrays;

/**
 * 活动类型枚举
 */
public enum ActivityTypeEnum implements IntArrayValuable {

    ACTIVITY_1(1, "十个一活动"),
    ACTIVITY_2(2, "应急演练"),
    ACTIVITY_3(3, "岗位练兵"),
    ACTIVITY_4(4, "技能比武"),
    ACTIVITY_5(5, "知识竞赛"),
    ACTIVITY_6(6, "安全活动");

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(ActivityTypeEnum::getType).toArray();

    /**
     *  类型
     */
    private final Integer type;
    /**
     * 描述
     */
    private final String name;

    ActivityTypeEnum(Integer type, String name) {
        this.type = type;
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public String getName() {
        return name;
    }

    @Override
    public int[] array() {
        return ARRAYS;
    }

}
